package com.test.demo.mapper;

import com.test.demo.po.Question;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Integer questionId);

    int insert(Question record);

    int insertSelective(Question record);

    Question selectByPrimaryKey(Integer questionId);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);

    List<Question> selectByTag(String keyword);

    List<Question> selectByKeyword(String keyword);         //标题或者tag中包含有该keyword.

    List<Question> selectAll();

    int addReply(Integer questionId);
}